package com.hly.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hly.common.utils.PageUtils;
import com.hly.product.entity.CategoryEntity;
import com.hly.product.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author dudulu
 * @email 52039@Miku.com
 * @date 2021-03-27 12:08:09
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWhithTree();

    List<CategoryEntity> findAll();

    List<CategoryEntity> getCategorys();

    Long[] findCateLogPath(Long cateLogId);

    List<CategoryEntity> getLevel1Catagorys();

    Map<String, List<Catalog2Vo>> getCatalogJson();

    public void updateCascade(CategoryEntity category);
}

